/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 邓大帅
 * Date: 2022-11-16
 * Time: 12:17
 */
public class MethodOverloading {
    public static int sum (int a, int b){
        return a+b;
    }
    public static float sum (float c, float d, float e) {
        return c+d+e;
    }
    public static void main(String[] args) {
        int a = 1;
        int b = 2;
        float c = 1.23f;
        float d = 2.45f;
        float e = 3.65f;
        System.out.println(sum(a, b));
        System.out.println(sum(c, d, e));
    }
}
